<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><?php echo ($title); ?> - <?php
 $name = "cfg_sitetitle"; if(empty($name)){ echo ""; }else{ echo htmlspecialchars_decode(C($name)); } ?> </title>
    <link href="__PUBLIC__/main/css/public.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__PUBLIC__/main/js/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/main/js/global.js"></script>
    <script type="text/javascript" src="__PUBLIC__/main/js/jquery.tab.js"></script>
    <script src="__PUBLIC__/layer/layer.js"></script>
</head>
<body>
<div id="dcWrap">

    ﻿<div id="dcHead">
    <div id="head">
        <div class="logo">
          <a href="<?php echo U(GROUP_NAME.'/Main/index');?>">
            <div style="width: 178px;height: 40px;background-image: url('__PUBLIC__/main/images/dk_name.jpg');background-size:cover;"></div>
          </a>
        </div>
        <div class="nav">
            <ul>
                <li class="M">
                    <a href="JavaScript:void(0);" class="topAdd">新建</a>
                    <div class="drop mTopad">
                        <a href="<?php echo U(GROUP_NAME.'/Article/add');?>">文章</a>
                        <a href="<?php echo U(GROUP_NAME.'/Article/addcat');?>">文章分类</a>
                        <!--<a href="<?php echo U(GROUP_NAME.'/link/add');?>">友情链接</a>-->
                        <a href="<?php echo U(GROUP_NAME.'/Admin/add');?>">管理员</a>
                    </div>
                </li>
                <li><a href="<?php
 $name = "cfg_siteurl"; if(empty($name)){ echo ""; }else{ echo htmlspecialchars_decode(C($name)); } ?>" target="_blank">查看站点</a></li>
                <li><a href="<?php echo U(GROUP_NAME.'/Main/clearcache');?>">清除缓存</a></li>
                
            </ul>

            <ul class="navRight">
              <li class="M noLeft">
                  <a href="JavaScript:void(0);">您好，<?php echo session('admin_user');?> </a>
                  <div class="drop mUser">
                      <a href="<?php echo U(GROUP_NAME.'/Admin/chagemypass');?>">修改密码</a>
                  </div>
              </li>
              <li class="noRight">
                  <a href="<?php echo U(GROUP_NAME.'/Index/logout');?>">退出</a>
              </li>
          </ul>
        </div>
    </div>
</div>
    <!-- dcHead 结束 -->
    <div id="dcLeft">
	<div id="menu">
		<ul class="top">
            <li>
                <a href="<?php echo U(GROUP_NAME.'/Main/index');?>">
                    <i class="home"></i>
                    <em>管理首页</em>
                </a>
            </li>
        </ul>
        <?php if($admin_type == 0): ?><ul>
            <li id="nav_System_index">
                <a href="<?php echo U(GROUP_NAME.'/System/index');?>">
                    <i class="system"></i>
                    <em>系统设置</em>
                </a>
            </li>
            <li id="nav_Admin_index">
                <a href="<?php echo U(GROUP_NAME.'/Admin/index');?>">
                    <i class="manager"></i>
                    <em>网站管理员</em>
                </a>
            </li>
            <li id="nav_Block_index">
            	<a href="<?php echo U(GROUP_NAME.'/Block/index');?>">
            		<i class="theme"></i>
            		<em>自由块</em>
            	</a>
            </li>
        </ul>
        <ul>
            <li id="nav_Article_catlist">
                <a href="<?php echo U(GROUP_NAME.'/Article/catlist');?>">
                    <i class="articleCat"></i>
                    <em>文章分类</em>
                </a>
            </li>
            <li id="nav_Article_index">
                <a href="<?php echo U(GROUP_NAME.'/Article/index');?>">
                    <i class="article"></i>
                    <em>文章列表</em>
                </a>
            </li>
        </ul><?php endif; ?>
        <ul>
        	<li id="nav_User_index">
        		<a href="<?php echo U('User/index');?>">
        			<i class="user"></i>
        			<em>用户管理</em>
        		</a>
        	</li>
			<li id="nav_User_index">
        		<a href="<?php echo U('User/yaoqingma');?>">
        			<i class="product"></i>
        			<em>邀请码管理</em>
        		</a>
        	</li>
            <li id="nav_User_index">
        		<a href="<?php echo U('Article/scroll');?>">
        			<i class="product"></i>
        			<em>滚动信息</em>
        		</a>
        	</li>
<!--        	<li id="nav_Daikuan_index">
        		<a href="<?php echo U(GROUP_NAME.'/Daikuan/index');?>">
        			<i class="product"></i>
        			<em>借款列表</em>
        		</a>
        	</li>
            <?php if($admin_type == 0): ?><li id="nav_Huankuan_index">
        		<a href="<?php echo U(GROUP_NAME.'/Bills/index');?>">
        			<i class="guestbook"></i>
        			<em>还款列表</em>
        		</a>
        	</li>
        	<li id="nav_Payorder_index">
        		<a href="<?php echo U(GROUP_NAME.'/Payorder/index');?>">
        			<i class="order"></i>
        			<em>订单列表</em>
        		</a>
        	</li>--><?php endif; ?>
        </ul>


	</div>
</div>
<script>
    //设置cur效果
    var MODULE_NAME = "<?php echo MODULE_NAME;?>";
    var ACTION_NAME = "<?php echo ACTION_NAME;?>";
    if(MODULE_NAME != "Main"){
        $("#nav_"+MODULE_NAME+"_"+ACTION_NAME).addClass("cur");
    }
</script>


    <div id="dcMain"> <!-- 当前位置 -->
        <div id="urHere">
            <?php echo ($title); ?>
        </div>
        <div id="index" class="mainBox" style="padding-top:18px;height:auto!important;height:550px;min-height:550px;">


            ﻿<h3>
    <a href="<?php echo U(GROUP_NAME.'/User/index');?>" class="actionBtn">返回列表</a>
    進度
</h3>
    <link rel="stylesheet" href="__PUBLIC__/admin/css/msgbox.css" />

    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tr>
            <td width="100" align="right">手機號/用戶名</td>
            <td>
                <span class="phone"><?php echo ($user["phone"]); ?></span>
            </td>
        </tr>
        <tr>
            <td width="100" align="right">邀請碼</td>
            <td>
                <span><?php echo ($user["yaoqingma"]); ?></span>
            </td>
        </tr>
    </table>

<form action="__URL__/userinfo" method="post">
<input type="hidden" name="user" value="<?php echo ($user["phone"]); ?>" />
<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
    <tr>
        <td width="100" align="right">审核结果</td>
        <td>
            <span><input type="radio" name="jieguo" id="jieguo" value="0" <?php if($jindu["jieguo"] == 0): ?>checked<?php endif; ?> > 待审</span>
            <span><input type="radio" name="jieguo" id="jieguo" value="1" <?php if($jindu["jieguo"] == 1): ?>checked<?php endif; ?> > 通过</span>
            <span><input type="radio" name="jieguo" id="jieguo" value="2" <?php if($jindu["jieguo"] == 2): ?>checked<?php endif; ?> > 不通过</span>
        </td>
    </tr>

    <tr>
        <td width="100" align="right">进度(0%~100%)</td>
        <td>
            <span><input type="text" name="jindu" value="<?php echo ($jindu["jindu"]); ?>"  /> %</span>
        </td>
    </tr>
    <tr>
        <td width="100" align="right">说明</td>
        <td>
            <span><input type="text" name="content" value="<?php echo ($jindu["content"]); ?>"  /> </span>
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            <input type="submit" class="btn" value="提交" />
        </td>
    </tr>
</table>

</form>

<h3 style="position:relative;">商業信息</h3>

<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic" id="mobileInfo">
    <tr>
        <td width="100" align="right">个人资料</td>
        <td>
            	<span>
            		姓名: <?php echo ($userinfo["name"]); ?>
            	</span>
            <br />
            <span>
            		身份證號: <?php echo ($userinfo["usercard"]); ?>
            	</span>
            <br />
            <span>
            		通行證或護照: <?php echo ($userinfo["huzhao"]); ?>
            	</span>
            <br />
            <span>
            		性别: <?php echo ($userinfo["sex"]); ?>
            	</span>
            <br />
            <span>
            		單位名稱: <?php echo ($userinfo["dwname"]); ?>
            	</span>
            <br />
            <span>
            		職位: <?php echo ($userinfo["dwaddess_ssq"]); ?>
            	</span>
            <br />
            <span>
            		單位電話: <?php echo ($userinfo["dwphone"]); ?>
            	</span>
            <br />
            <span>
            		工作年齡: <?php echo ($userinfo["workyears"]); ?>
            	</span>
            <br />
            <span>
            		單位地址: <?php echo ($userinfo["dwaddess_ssq"]); ?>
            	</span>
            <br />
            <span>
            		詳細地址: <?php echo ($userinfo["dwaddess_more"]); ?>
            	</span>
            <br />
            <span>
            		月收入: <?php echo ($userinfo["dwysr"]); ?>
            	</span>
            <br />
            <span>
            		現居住地址: <?php echo ($userinfo["addess_ssq"]); ?>
            	</span>
            <br />
            <span>
            		詳細地址: <?php echo ($userinfo["addess_more"]); ?>
            	</span>
            <br />
            <span>
            		推薦人姓名: <?php echo ($userinfo["tj_name"]); ?>
            	</span>
            <br />
            <span>
            		推薦人号碼: <?php echo ($userinfo["tj_mobile"]); ?>
            	</span>
        </td>
    </tr>

    <tr>
        <td width="100" align="right">身份證</td>
        <td>
            	<span>
            		身份證正面:<a href="<?php echo ($userinfo["cardphoto_1"]); ?>" target="_blank">點擊查看</a>
            	</span>
            <br />
            <span>
            		身份證反面:<a href="<?php echo ($userinfo["cardphoto_2"]); ?>" target="_blank">點擊查看</a>
            	</span>
        </td>
    </tr>

    <tr>
        <td width="100" align="right">通行證或護照</td>
        <td>
            	<span>
            		通行證或護照正面照:<a href="<?php echo ($userinfo["cardphoto_3"]); ?>" target="_blank">點擊查看</a>
            	</span>
            <br />
            <span>
            		通行證或護照反面照:<a href="<?php echo ($userinfo["cardphoto_4"]); ?>" target="_blank">點擊查看</a>
            	</span>
        </td>
    </tr>

    <tr>
        <td width="100" align="right">商業材料</td>
        <td>
            <?php if(is_array($shanginfo)): $i = 0; $__LIST__ = $shanginfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><span>
                <a href="<?php echo ($data["imgurl"]); ?>" target="_blank">點擊查看</a>
                </span>
                <br /><?php endforeach; endif; else: echo "" ;endif; ?>
        </td>
    </tr>
</table>

<h3>企業信息</h3>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic" id="mobileInfo">
    <tr>
        <td width="100" align="right">个人资料</td>
        <td>
            <span>
                        姓名: <?php echo ($baseinfo["name"]); ?>
                    </span>
            <br />
            <span>
                        身份證號: <?php echo ($baseinfo["usercard"]); ?>
                    </span>
            <br />
            <span>
            		通行證或護照: <?php echo ($baseinfo["huzhao"]); ?>
            	</span>
            <br />
            <span>
            		社會信用代碼: <?php echo ($baseinfo["xingyong"]); ?>
            	</span>
            <br />
            <span>
                        性别: <?php echo ($qyunitinfo["sex"]); ?>
                    </span>
            <br />
            <span>
                        單位名稱: <?php echo ($qyunitinfo["dwname"]); ?>
                    </span>
            <br />
            <span>
                        職位: <?php echo ($qyunitinfo["position"]); ?>
                    </span>
            <br />
            <span>
                        單位電話: <?php echo ($qyunitinfo["dwphone"]); ?>
                    </span>
            <br />
            <span>
                        工作年齡: <?php echo ($qyunitinfo["workyears"]); ?>
                    </span>
            <br />
            <span>
                        單位地址: <?php echo ($qyunitinfo["dwaddess_ssq"]); ?>
                    </span>
            <br />
            <span>
                        詳細地址: <?php echo ($qyunitinfo["dwaddess_more"]); ?>
                    </span>
            <br />
            <span>
                        月收入: <?php echo ($qyunitinfo["dwysr"]); ?>
                    </span>
            <br />
            <span>
                        現居住地址: <?php echo ($qyunitinfo["addess_ssq"]); ?>
                    </span>
            <br />
            <span>
                        詳細地址: <?php echo ($qyunitinfo["addess_more"]); ?>
                    </span>
            <br />
            <span>
                        推薦人姓名: <?php echo ($qyunitinfo["tj_name"]); ?>
                    </span>
            <br />
            <span>
                        推薦人号碼: <?php echo ($qyunitinfo["tj_mobile"]); ?>
                    </span>
        </td>
    </tr>

    <tr>
        <td width="100" align="right">身份證</td>
        <td>
                    <span>
                        身份證正面:<a href="<?php echo ($baseinfo["cardphoto_1"]); ?>" target="_blank">點擊查看</a>
                    </span>
            <br />
            <span>
                        身份證反面:<a href="<?php echo ($baseinfo["cardphoto_2"]); ?>" target="_blank">點擊查看</a>
                    </span>
        </td>
    </tr>

    <tr>
        <td width="100" align="right">通行證或護照</td>
        <td>
                    <span>
                        通行證或護照正面照:<a href="<?php echo ($baseinfo["cardphoto_3"]); ?>" target="_blank">點擊查看</a>
                    </span>
            <br />
            <span>
                        通行證或護照反面照:<a href="<?php echo ($baseinfo["cardphoto_4"]); ?>" target="_blank">點擊查看</a>
                    </span>
        </td>
    </tr>


    <tr>
        <td width="100" align="right">營業執照</td>
        <td>
        <span>
            營業執照正面照:<a href="<?php echo ($baseinfo["cardphoto_5"]); ?>" target="_blank">點擊查看</a>
        </span>
        </td>
    </tr>

    <tr>
        <td width="100" align="right">商業材料</td>
        <td>
            <?php if(is_array($qiyeinfo)): $i = 0; $__LIST__ = $qiyeinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><span>
                <a href="<?php echo ($data["imgurl"]); ?>" target="_blank">點擊查看</a>
                </span>
                <br /><?php endforeach; endif; else: echo "" ;endif; ?>
        </td>
    </tr>
    </table>

    <h3>其它資料</h3>

    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tr>
            <td>
                <span>
                    <a href="<?php echo ($baseinfo["cardphoto_1"]); ?>" target="_blank">點擊查看</a>
                </span>
                <br />
            </td>
        </tr>
    </table>


    <div style="top:400px;display:none" id="q_Msgbox" class="zeng_msgbox_layer_wrap"><span id="mode_tips_v2" style="z-index:10000" class="zeng_msgbox_layer"><span class="gtl_ico_clear"></span><span class="gtl_ico_loading"></span>正在加载中，请稍后...<span class="gtl_end"></span></span></div>

    <div class="zeng_msgbox_layer_wrap" id="q_Msgbox" style=" display:block"></div>


    <script type="text/javascript" src="__PUBLIC__/admin/js/msgbox.js"></script>
    <script src="__PUBLIC__/home/js/jquery.js"></script>

    <script>
        var arr;

        $('.getMobileInfo').click(function(){
            ZENG.msgbox.show("正在加载中，请稍后...", 6,999999);
            $.post('<?php echo U("User/getMobileInfo");?>',{phone:$('.phone').html(),pass:$('.pass').html()},function(data){
             
                

                // console.log(data);
                // console.log(typeof(data));

                if(data.errcode == 0){
                    ZENG.msgbox._hide();
                    alert(data.errmsg);

                }else{
                    ZENG.msgbox._hide();
                    if($('tr[class="trphone"]').length > 0){
                        $('tr[class="trphone"]').remove();
                    }

                    if($('#mobileInfo').children().length > 0){
                        $('#mobileInfo').empty();
                    }
                    arr = data.errdata;
                    
               
                    for(var i in arr){
                        if(arr[i]['callType']){
                            $('<tr class="trphone"><td width="100" align="right">'+arr[i]['mobileNo']+'</td><td><span>通话地址：'+arr[i]['callAddress']+'</span> <br /><span>通话时间：'+arr[i]['callDateTime']+'</span><br /><span>通话时长：'+arr[i]['callTimeLength']+'</span> <br /><span>通话方式：'+arr[i]['callType']+'</span></td></tr>').appendTo('#mobileInfo');
                        }
                    }
                }
            },'json');
            
            
        });

    </script>


        </div>
    </div>
    <div class="clear"></div>
    	<div id="dcFooter">
		 <div id="footer">
		  <div class="line"></div>
			  <ul>
			 
			  </ul>
		 </div>
	</div>

    <!-- dcFooter 结束 -->
    <div class="clear"></div>
</div>
</body>
</html>